package com.example.demo.server.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.example.demo.domain.Actor;
import com.example.demo.mapper.ActorMapper;
import com.example.demo.server.IActorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ActorServiceImpl implements IActorService {
    @Autowired
    private ActorMapper mapper;

    @Override
    public List<Actor> list() {
        return mapper.selectList(Wrappers.lambdaQuery());
    }
}
